package com.arron.adapter.classadapter;

public class VoltageAdapter extends Voltage220V implements IVoltage5V,IVoltage12V{
    @Override
    public int output5V() {
        int srcV = output220();
        int dstV = srcV / 44;
        return dstV;
    }

    @Override
    public int output12V() {
        int srcV = output220();
        int dstV = srcV - 208;
        return dstV;
    }
}